package com.woniuxy.huayoung.service;

import com.woniuxy.huayoung.entity.TravelNotes;
import org.springframework.stereotype.Service;

import java.util.List;

public interface TravelNotesService {
    //根据点击量排名查找游记
    public List<TravelNotes> findByTopClicks(int top);

    //根据点击量排名查找游记
    List<String> findImgs();

    //根据省份导航查找对应省份游记
    public List<TravelNotes> findByLocation(String location);

    //根据搜索词查找游记
    public List<TravelNotes> findByWords(String words);

    //游记模块显示最热游记
    public List<TravelNotes> showHottest();

    //根据ID查游记
    public TravelNotes showDetails(int id);

    //编辑游记
    public int editTravelNotes(TravelNotes travelNotes);

    //根据ID删除游记
    public int deleteTravelNotes(int id);

    //增加游记
    public int insert(TravelNotes travelNotes);

    //点击量加一
    public int addClicks(int id);

    //根据用户ID查询自己的游记
    public List<TravelNotes> findByUid(int uid);
    //删除指定游记
    public int delById(int id);
}
